<template>
  <view class="container">
    <view class="img">
      <image src="../../../static/img/mine/kong.png" />
    </view>
    <view class="blank_text" v-if="TabCur===3||TabCur===4">
      暂时还没有记录哦 ~
    </view>
	<view class="blank_text" v-else>
	  暂时还没有合作企业哦 ~
	</view>
	<view>
		<view @tap="gototask" class="btntask">去接任务</view>
	</view>
  </view>
</template>

<script>
	const Page = require('../../../utils/mtj-wx-sdk.js').Page;
export default {
  name: "Blank",
  props: {
    TabCur: {
      type: Number,
      default: function() {
        return '';
      }
    }
  },
  methods:{
  	gototask() {
  		uni.switchTab({
  			url: '/pages/index/index'
  		})  
  	},
  }
};

</script>

<style lang="scss" scoped>
.container {
  padding: 140px 101px;
}
.img, image {
  display: block;
  margin: 0 auto;
  width: 140px;
  height: 170px;
}
.blank_text {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: rgba(136, 136, 136, 1);
  opacity: 1;
  margin-top: 13px;
  text-align: center;
  
}
.btntask{
	width: 200px;
	height: 50px;
	background: #0AC770;
	border-radius:25px;
	margin-top: 20px;
	line-height: 50px;
	text-align: center;
	color: #FFFFFF;
	font-weight: bold;
	font-size:17px ;
}
</style>
